﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

/// <summary>
/// Summary description for calculation_Daily
/// </summary>
/// 

namespace Bestlife.ERP.DataAccess
{

    public class calculation_Daily : System.Web.UI.Page 
    {
      
     //from shopping cart;   id + pv + t sales+ bv +tpv  (26 th day of month ppv = 0 )
        
        Double product_bv;
        Double product_pv;
        Double product_sales;



        public void calculation_Dailys(String user_id, Double p_bv, Double ppv, Double psales)
        {
            
        product_bv=p_bv;
        product_pv=ppv;
        
        product_sales=psales;

    
            
            try
        {
            Bestlife.ERP.DataAccess.users userl = new users();
            userl.users_level(user_id, product_bv, product_pv, product_sales);
            //DataAccess.users usr = new DataAccess.users();
            //usr.users_level(user_id, product_bv, product_pv, product_sales);
        }


        catch (Exception err)
        {

           // Response.Redirect("404.aspx?Massage=" + err.Message.ToString()+"Error in assign value to user level class");
        }

            


            
        }



    }
}